<div class="articleContainer">
	<h1><?php echo $article['Article']['title']; ?></h1>
	<small>
		<?php echo $article['User']['username']; ?> -
		<?php echo $article['Article']['created']; ?> -
		<?php echo $this->Html->link("Comments: " . $article['Article']['comment_count'], array("controller" => "articles", "action" => "view/" . $article['Article']['id'])); ?>
		<p class="articleBody"><?php echo $article['Article']['body']; ?></p>
	</small>
</div>

<h1>Comments</h1>

<div class="commentContainer">
<ol>
<?php foreach($article['Comment'] AS $comment): ?>
	<li>
		<h1><?php echo Sanitize::html($comment['name']); ?></h1>
		<small><?php echo $comment['created']; ?></small>
		<div class="comment">
			<p><?php echo Sanitize::html($comment['body']); ?></p>
		</div>
	</li>
<?php endforeach; ?>
</ol>
</div>

<h1>Add a comment</h1>
<div class="commentForm">
<?php
	echo $this->Form->create("Article");
	echo $this->Form->Input("Comment.article_id", array("type" => "hidden", "value" => $article['Article']['id']));
	echo $this->Form->Input("Comment.name");
	echo $this->Form->input("Comment.body", array("type" => "textarea", "label" => "Message"));
	echo $this->Form->End("Add Comment");
?>
</div>
